package org.dalmatian.common.core.utils;

import org.noear.solon.Solon;

/**
 * @author zc
 * solon 工具类
 */
public class SolonUtils {

    public static   <T> T getBean(Class<T> type){
        return Solon.context().getBean(type);
    }
    public static   <T> T getBean(String beanName){
        return Solon.context().getBean(beanName);
    }


    public static <T> T getAopProxy(T invoker) {
        return (T) getBean(invoker.getClass());
    }

}
